<template>
  <div v-if="show" class="container">
    <div>{{ text }}</div>
  </div>
</template>

<script>
export default {
    name: 'Toast'
}
</script>

<style scoped>
.container{
    position: absolute;
    top:0;
    right:0;
    bottom:0;
    left:0;
    margin:auto;
    width:100px;
    height:40px;
    background-color: #333;
    color:#fff;
}
</style>
